#================================================================
#	This Makefile creates _Convex_hull.so which can be imported by Python
#================================================================

include ../makefile.inc

Convex_hull_module = Convex_hull_2

OBJ_of_Convex_hull_module = Py_convex_hull_2.o \
	Convex_hull_2_module.o 

all: $(OBJ_of_Convex_hull_module) $(OBJ_of_Triangulation_2_module) 
	@echo 'Creating a Python modules'
	@g++ $(CGAL_PYTHON_LDFLAGS) $(OBJ_of_Convex_hull_module)  -o $(Convex_hull_module).so
	@echo '$(Convex_hull_module) module is created in ./$(Convex_hull_module)/$(Convex_hull_module).so'

.cpp.o:
	@echo 'Compiling $<'
	@g++ $(CGAL_PYTHON_CXXFLAGS) -c $<

clean:
	@rm -f *.so
	@rm -f $(OBJ_of_Convex_hull_module) *.*~  *~ 
